GetError Method (SC Manager)

Gets the most recent error for this object.

Syntax

obj.GetError()
Where obj is an OpScrUtil.SCManager object.

Parameters

None.

Return Type

String.

Example

To get an error after a function fails, enter:

Set obj = CreateObject("OpScrUtil.SCManager")
If Not(obj.StartService("messenger")) Then
MsgBox "Service did not start. The error is " & obj.GetError()
End If